/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Choctaw</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15036 (C-0-T14914-S14915-S14916-S15036-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianChoctaw()
 * @model extendedMetaData="name='RaceAmericanIndianChoctaw'"
 * @generated
 */
public enum RaceAmericanIndianChoctaw implements Enumerator {
	/**
	 * The '<em><b>11551</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11551_VALUE
	 * @generated
	 * @ordered
	 */
	_11551(0, "_11551", "1155-1"),

	/**
	 * The '<em><b>11569</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11569_VALUE
	 * @generated
	 * @ordered
	 */
	_11569(1, "_11569", "1156-9"),

	/**
	 * The '<em><b>11577</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11577_VALUE
	 * @generated
	 * @ordered
	 */
	_11577(2, "_11577", "1157-7"),

	/**
	 * The '<em><b>11585</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11585_VALUE
	 * @generated
	 * @ordered
	 */
	_11585(3, "_11585", "1158-5"),

	/**
	 * The '<em><b>11593</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11593_VALUE
	 * @generated
	 * @ordered
	 */
	_11593(4, "_11593", "1159-3"),

	/**
	 * The '<em><b>11601</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11601_VALUE
	 * @generated
	 * @ordered
	 */
	_11601(5, "_11601", "1160-1");

	/**
	 * The '<em><b>11551</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11551</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11551
	 * @model literal="1155-1"
	 * @generated
	 * @ordered
	 */
	public static final int _11551_VALUE = 0;

	/**
	 * The '<em><b>11569</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11569</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11569
	 * @model literal="1156-9"
	 * @generated
	 * @ordered
	 */
	public static final int _11569_VALUE = 1;

	/**
	 * The '<em><b>11577</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11577</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11577
	 * @model literal="1157-7"
	 * @generated
	 * @ordered
	 */
	public static final int _11577_VALUE = 2;

	/**
	 * The '<em><b>11585</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11585</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11585
	 * @model literal="1158-5"
	 * @generated
	 * @ordered
	 */
	public static final int _11585_VALUE = 3;

	/**
	 * The '<em><b>11593</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11593</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11593
	 * @model literal="1159-3"
	 * @generated
	 * @ordered
	 */
	public static final int _11593_VALUE = 4;

	/**
	 * The '<em><b>11601</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11601</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11601
	 * @model literal="1160-1"
	 * @generated
	 * @ordered
	 */
	public static final int _11601_VALUE = 5;

	/**
	 * An array of all the '<em><b>Race American Indian Choctaw</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianChoctaw[] VALUES_ARRAY =
		new RaceAmericanIndianChoctaw[] {
			_11551,
			_11569,
			_11577,
			_11585,
			_11593,
			_11601,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Choctaw</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianChoctaw> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Choctaw</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChoctaw get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianChoctaw result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Choctaw</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChoctaw getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianChoctaw result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Choctaw</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChoctaw get(int value) {
		switch (value) {
			case _11551_VALUE: return _11551;
			case _11569_VALUE: return _11569;
			case _11577_VALUE: return _11577;
			case _11585_VALUE: return _11585;
			case _11593_VALUE: return _11593;
			case _11601_VALUE: return _11601;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianChoctaw(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianChoctaw
